package com.gxa.hualian.controller;

import com.gxa.hualian.pojo.Manager;
import com.gxa.hualian.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author lijunlin
 * @date 2022/5/29
 */
@Controller
@RequestMapping("/manager")
public class managerController {
    @Autowired
    ManagerService managerService;

    @GetMapping("/findManager")
    @ResponseBody
    public  Manager selectById(){
       return managerService.selectById(8);
    }
}
